import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import './patientpage.css'
import { AtButton } from 'taro-ui'
import { $redirectTo } from '../../../global';
import reactMixin from 'react-mixin';
import myJs from '../../pages/patientpage/patientpagejs.js'
import app from '../../../main.js'


export default class PatientPage extends Component {

  config = {
    navigationBarTitleText: '患者主页'
  }
  constructor () { 
        super(...arguments); 
        this.state = this.getData(); 
    }
  componentWillMount () { }

  componentDidMount () { }

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }

  go=(url)=>{
      app.redirectTo(url)
  }

  render () {
    
    return (
      <View className='patient-page'>
        <AtButton type='primary' onClick={this.go.bind(this,'../suifangHuanzheLieBiao/suifangHuanzheLieBiao')}>患者主页</AtButton>
      </View>
    )
  }
}
reactMixin.onClass(PatientPage,myJs);
